Passed
Push — feature/delete_items ( abdbb3...c1e89b )
by Tristan
09:18
created

bootstrap.js ➔ ... ➔ isStream   A

Complexity

Conditions 1
Paths 2

Size

Total Lines 3
Code Lines 2

Duplication

Lines 0
Ratio 0 %

Importance

Changes 0
Metric Value
eloc 2
dl 0
loc 3
rs 10
c 0
b 0
f 0
cc 1
nc 2
nop 1
1 View Code Duplication
/******/ (function(modules) { // webpackBootstrap
0 ignored issues
show
Duplication introduced by
This code seems to be duplicated in your project.
Loading history...
2
/******/ 	// The module cache
3
/******/ 	var installedModules = {};
4
/******/
5
/******/ 	// The require function
6
/******/ 	function __webpack_require__(moduleId) {
7
/******/
8
/******/ 		// Check if module is in cache
9
/******/ 		if(installedModules[moduleId]) {
10
/******/ 			return installedModules[moduleId].exports;
11
/******/ 		}
12
/******/ 		// Create a new module (and put it into the cache)
13
/******/ 		var module = installedModules[moduleId] = {
14
/******/ 			i: moduleId,
15
/******/ 			l: false,
16
/******/ 			exports: {}
17
/******/ 		};
18
/******/
19
/******/ 		// Execute the module function
20
/******/ 		modules[moduleId].call(module.exports, module, module.exports, __webpack_require__);
21
/******/
22
/******/ 		// Flag the module as loaded
23
/******/ 		module.l = true;
24
/******/
25
/******/ 		// Return the exports of the module
26
/******/ 		return module.exports;
27
/******/ 	}
28
/******/
29
/******/
30
/******/ 	// expose the modules object (__webpack_modules__)
31
/******/ 	__webpack_require__.m = modules;
32
/******/
33
/******/ 	// expose the module cache
34
/******/ 	__webpack_require__.c = installedModules;
35
/******/
36
/******/ 	// define getter function for harmony exports
37
/******/ 	__webpack_require__.d = function(exports, name, getter) {
38
/******/ 		if(!__webpack_require__.o(exports, name)) {
39
/******/ 			Object.defineProperty(exports, name, {
40
/******/ 				configurable: false,
41
/******/ 				enumerable: true,
42
/******/ 				get: getter
43
/******/ 			});
44
/******/ 		}
45
/******/ 	};
46
/******/
47
/******/ 	// getDefaultExport function for compatibility with non-harmony modules
48
/******/ 	__webpack_require__.n = function(module) {
49
/******/ 		var getter = module && module.__esModule ?
50
/******/ 			function getDefault() { return module['default']; } :
51
/******/ 			function getModuleExports() { return module; };
52
/******/ 		__webpack_require__.d(getter, 'a', getter);
53
/******/ 		return getter;
54
/******/ 	};
55
/******/
56
/******/ 	// Object.prototype.hasOwnProperty.call
57
/******/ 	__webpack_require__.o = function(object, property) { return Object.prototype.hasOwnProperty.call(object, property); };
58
/******/
59
/******/ 	// __webpack_public_path__
60
/******/ 	__webpack_require__.p = "/";
61
/******/
62
/******/ 	// Load entry module and return exports
63
/******/ 	return __webpack_require__(__webpack_require__.s = 7);
64
/******/ })
65
/************************************************************************/
66
/******/ ([
67
/* 0 */
68
/***/ (function(module, exports, __webpack_require__) {
69
70
"use strict";
71
72
73
var bind = __webpack_require__(2);
74
var isBuffer = __webpack_require__(11);
75
76
/*global toString:true*/
77
78
// utils is a library of generic helper functions non-specific to axios
79
80
var toString = Object.prototype.toString;
81
82
/**
83
 * Determine if a value is an Array
84
 *
85
 * @param {Object} val The value to test
86
 * @returns {boolean} True if value is an Array, otherwise false
87
 */
88
function isArray(val) {
89
  return toString.call(val) === '[object Array]';
90
}
91
92
/**
93
 * Determine if a value is an ArrayBuffer
94
 *
95
 * @param {Object} val The value to test
96
 * @returns {boolean} True if value is an ArrayBuffer, otherwise false
97
 */
98
function isArrayBuffer(val) {
99
  return toString.call(val) === '[object ArrayBuffer]';
100
}
101
102
/**
103
 * Determine if a value is a FormData
104
 *
105
 * @param {Object} val The value to test
106
 * @returns {boolean} True if value is an FormData, otherwise false
107
 */
108
function isFormData(val) {
109
  return (typeof FormData !== 'undefined') && (val instanceof FormData);
110
}
111
112
/**
113
 * Determine if a value is a view on an ArrayBuffer
114
 *
115
 * @param {Object} val The value to test
116
 * @returns {boolean} True if value is a view on an ArrayBuffer, otherwise false
117
 */
118
function isArrayBufferView(val) {
119
  var result;
120
  if ((typeof ArrayBuffer !== 'undefined') && (ArrayBuffer.isView)) {
121
    result = ArrayBuffer.isView(val);
122
  } else {
123
    result = (val) && (val.buffer) && (val.buffer instanceof ArrayBuffer);
124
  }
125
  return result;
126
}
127
128
/**
129
 * Determine if a value is a String
130
 *
131
 * @param {Object} val The value to test
132
 * @returns {boolean} True if value is a String, otherwise false
133
 */
134
function isString(val) {
135
  return typeof val === 'string';
136
}
137
138
/**
139
 * Determine if a value is a Number
140
 *
141
 * @param {Object} val The value to test
142
 * @returns {boolean} True if value is a Number, otherwise false
143
 */
144
function isNumber(val) {
145
  return typeof val === 'number';
146
}
147
148
/**
149
 * Determine if a value is undefined
150
 *
151
 * @param {Object} val The value to test
152
 * @returns {boolean} True if the value is undefined, otherwise false
153
 */
154
function isUndefined(val) {
155
  return typeof val === 'undefined';
156
}
157
158
/**
159
 * Determine if a value is an Object
160
 *
161
 * @param {Object} val The value to test
162
 * @returns {boolean} True if value is an Object, otherwise false
163
 */
164
function isObject(val) {
165
  return val !== null && typeof val === 'object';
166
}
167
168
/**
169
 * Determine if a value is a Date
170
 *
171
 * @param {Object} val The value to test
172
 * @returns {boolean} True if value is a Date, otherwise false
173
 */
174
function isDate(val) {
175
  return toString.call(val) === '[object Date]';
176
}
177
178
/**
179
 * Determine if a value is a File
180
 *
181
 * @param {Object} val The value to test
182
 * @returns {boolean} True if value is a File, otherwise false
183
 */
184
function isFile(val) {
185
  return toString.call(val) === '[object File]';
186
}
187
188
/**
189
 * Determine if a value is a Blob
190
 *
191
 * @param {Object} val The value to test
192
 * @returns {boolean} True if value is a Blob, otherwise false
193
 */
194
function isBlob(val) {
195
  return toString.call(val) === '[object Blob]';
196
}
197
198
/**
199
 * Determine if a value is a Function
200
 *
201
 * @param {Object} val The value to test
202
 * @returns {boolean} True if value is a Function, otherwise false
203
 */
204
function isFunction(val) {
205
  return toString.call(val) === '[object Function]';
206
}
207
208
/**
209
 * Determine if a value is a Stream
210
 *
211
 * @param {Object} val The value to test
212
 * @returns {boolean} True if value is a Stream, otherwise false
213
 */
214
function isStream(val) {
215
  return isObject(val) && isFunction(val.pipe);
216
}
217
218
/**
219
 * Determine if a value is a URLSearchParams object
220
 *
221
 * @param {Object} val The value to test
222
 * @returns {boolean} True if value is a URLSearchParams object, otherwise false
223
 */
224
function isURLSearchParams(val) {
225
  return typeof URLSearchParams !== 'undefined' && val instanceof URLSearchParams;
0 ignored issues
show
Bug introduced by
The variable URLSearchParams seems to be never declared. If this is a global, consider adding a /** global: URLSearchParams */ comment.

This checks looks for references to variables that have not been declared. This is most likey a typographical error or a variable has been renamed.

To learn more about declaring variables in Javascript, see the MDN.

Loading history...
226
}
227
228
/**
229
 * Trim excess whitespace off the beginning and end of a string
230
 *
231
 * @param {String} str The String to trim
232
 * @returns {String} The String freed of excess whitespace
233
 */
234
function trim(str) {
235
  return str.replace(/^\s*/, '').replace(/\s*$/, '');
236
}
237
238
/**
239
 * Determine if we're running in a standard browser environment
240
 *
241
 * This allows axios to run in a web worker, and react-native.
242
 * Both environments support XMLHttpRequest, but not fully standard globals.
243
 *
244
 * web workers:
245
 *  typeof window -> undefined
246
 *  typeof document -> undefined
247
 *
248
 * react-native:
249
 *  navigator.product -> 'ReactNative'
250
 */
251
function isStandardBrowserEnv() {
252
  if (typeof navigator !== 'undefined' && navigator.product === 'ReactNative') {
0 ignored issues
show
Bug introduced by
The variable navigator seems to be never declared. If this is a global, consider adding a /** global: navigator */ comment.

This checks looks for references to variables that have not been declared. This is most likey a typographical error or a variable has been renamed.

To learn more about declaring variables in Javascript, see the MDN.

Loading history...
253
    return false;
254
  }
255
  return (
256
    typeof window !== 'undefined' &&
257
    typeof document !== 'undefined'
258
  );
259
}
260
261
/**
262
 * Iterate over an Array or an Object invoking a function for each item.
263
 *
264
 * If `obj` is an Array callback will be called passing
265
 * the value, index, and complete array for each item.
266
 *
267
 * If 'obj' is an Object callback will be called passing
268
 * the value, key, and complete object for each property.
269
 *
270
 * @param {Object|Array} obj The object to iterate
271
 * @param {Function} fn The callback to invoke for each item
272
 */
273
function forEach(obj, fn) {
274
  // Don't bother if no value provided
275
  if (obj === null || typeof obj === 'undefined') {
276
    return;
277
  }
278
279
  // Force an array if not already something iterable
280
  if (typeof obj !== 'object') {
281
    /*eslint no-param-reassign:0*/
282
    obj = [obj];
283
  }
284
285
  if (isArray(obj)) {
286
    // Iterate over array values
287
    for (var i = 0, l = obj.length; i < l; i++) {
288
      fn.call(null, obj[i], i, obj);
289
    }
290
  } else {
291
    // Iterate over object keys
292
    for (var key in obj) {
0 ignored issues
show
Complexity introduced by
A for in loop automatically includes the property of any prototype object, consider checking the key using hasOwnProperty.

When iterating over the keys of an object, this includes not only the keys of the object, but also keys contained in the prototype of that object. It is generally a best practice to check for these keys specifically:

var someObject;
for (var key in someObject) {
    if ( ! someObject.hasOwnProperty(key)) {
        continue; // Skip keys from the prototype.
    }

    doSomethingWith(key);
}
Loading history...
293
      if (Object.prototype.hasOwnProperty.call(obj, key)) {
294
        fn.call(null, obj[key], key, obj);
295
      }
296
    }
297
  }
298
}
299
300
/**
301
 * Accepts varargs expecting each argument to be an object, then
302
 * immutably merges the properties of each object and returns result.
303
 *
304
 * When multiple objects contain the same key the later object in
305
 * the arguments list will take precedence.
306
 *
307
 * Example:
308
 *
309
 * ```js
310
 * var result = merge({foo: 123}, {foo: 456});
311
 * console.log(result.foo); // outputs 456
312
 * ```
313
 *
314
 * @param {Object} obj1 Object to merge
315
 * @returns {Object} Result of all merge properties
316
 */
317
function merge(/* obj1, obj2, obj3, ... */) {
318
  var result = {};
319
  function assignValue(val, key) {
320
    if (typeof result[key] === 'object' && typeof val === 'object') {
321
      result[key] = merge(result[key], val);
322
    } else {
323
      result[key] = val;
324
    }
325
  }
326
327
  for (var i = 0, l = arguments.length; i < l; i++) {
328
    forEach(arguments[i], assignValue);
329
  }
330
  return result;
331
}
332
333
/**
334
 * Extends object a by mutably adding to it the properties of object b.
335
 *
336
 * @param {Object} a The object to be extended
337
 * @param {Object} b The object to copy properties from
338
 * @param {Object} thisArg The object to bind function to
339
 * @return {Object} The resulting value of object a
340
 */
341
function extend(a, b, thisArg) {
342
  forEach(b, function assignValue(val, key) {
343
    if (thisArg && typeof val === 'function') {
344
      a[key] = bind(val, thisArg);
345
    } else {
346
      a[key] = val;
347
    }
348
  });
349
  return a;
350
}
351
352
module.exports = {
353
  isArray: isArray,
354
  isArrayBuffer: isArrayBuffer,
355
  isBuffer: isBuffer,
356
  isFormData: isFormData,
357
  isArrayBufferView: isArrayBufferView,
358
  isString: isString,
359
  isNumber: isNumber,
360
  isObject: isObject,
361
  isUndefined: isUndefined,
362
  isDate: isDate,
363
  isFile: isFile,
364
  isBlob: isBlob,
365
  isFunction: isFunction,
366
  isStream: isStream,
367
  isURLSearchParams: isURLSearchParams,
368
  isStandardBrowserEnv: isStandardBrowserEnv,
369
  forEach: forEach,
370
  merge: merge,
371
  extend: extend,
372
  trim: trim
373
};
374
375
376
/***/ }),
377
/* 1 */
378
/***/ (function(module, exports, __webpack_require__) {
379
380
"use strict";
381
/* WEBPACK VAR INJECTION */(function(process) {
382
383
var utils = __webpack_require__(0);
384
var normalizeHeaderName = __webpack_require__(14);
385
386
var DEFAULT_CONTENT_TYPE = {
387
  'Content-Type': 'application/x-www-form-urlencoded'
388
};
389
390
function setContentTypeIfUnset(headers, value) {
391
  if (!utils.isUndefined(headers) && utils.isUndefined(headers['Content-Type'])) {
392
    headers['Content-Type'] = value;
393
  }
394
}
395
396
function getDefaultAdapter() {
397
  var adapter;
398
  if (typeof XMLHttpRequest !== 'undefined') {
399
    // For browsers use XHR adapter
400
    adapter = __webpack_require__(3);
401
  } else if (typeof process !== 'undefined') {
402
    // For node use HTTP adapter
403
    adapter = __webpack_require__(3);
404
  }
405
  return adapter;
0 ignored issues
show
Bug introduced by
The variable adapter does not seem to be initialized in case typeof process !== "undefined" on line 401 is false. Are you sure this can never be the case?
Loading history...
406
}
407
408
var defaults = {
409
  adapter: getDefaultAdapter(),
410
411
  transformRequest: [function transformRequest(data, headers) {
412
    normalizeHeaderName(headers, 'Content-Type');
413
    if (utils.isFormData(data) ||
414
      utils.isArrayBuffer(data) ||
415
      utils.isBuffer(data) ||
416
      utils.isStream(data) ||
417
      utils.isFile(data) ||
418
      utils.isBlob(data)
419
    ) {
420
      return data;
421
    }
422
    if (utils.isArrayBufferView(data)) {
423
      return data.buffer;
424
    }
425
    if (utils.isURLSearchParams(data)) {
426
      setContentTypeIfUnset(headers, 'application/x-www-form-urlencoded;charset=utf-8');
427
      return data.toString();
428
    }
429
    if (utils.isObject(data)) {
430
      setContentTypeIfUnset(headers, 'application/json;charset=utf-8');
431
      return JSON.stringify(data);
432
    }
433
    return data;
434
  }],
435
436
  transformResponse: [function transformResponse(data) {
437
    /*eslint no-param-reassign:0*/
438
    if (typeof data === 'string') {
439
      try {
440
        data = JSON.parse(data);
441
      } catch (e) { /* Ignore */ }
0 ignored issues
show
Coding Style Comprehensibility Best Practice introduced by
Empty catch clauses should be used with caution; consider adding a comment why this is needed.
Loading history...
442
    }
443
    return data;
444
  }],
445
446
  timeout: 0,
447
448
  xsrfCookieName: 'XSRF-TOKEN',
449
  xsrfHeaderName: 'X-XSRF-TOKEN',
450
451
  maxContentLength: -1,
452
453
  validateStatus: function validateStatus(status) {
454
    return status >= 200 && status < 300;
455
  }
456
};
457
458
defaults.headers = {
459
  common: {
460
    'Accept': 'application/json, text/plain, */*'
461
  }
462
};
463
464
utils.forEach(['delete', 'get', 'head'], function forEachMethodNoData(method) {
465
  defaults.headers[method] = {};
466
});
467
468
utils.forEach(['post', 'put', 'patch'], function forEachMethodWithData(method) {
469
  defaults.headers[method] = utils.merge(DEFAULT_CONTENT_TYPE);
470
});
471
472
module.exports = defaults;
473
474
/* WEBPACK VAR INJECTION */}.call(exports, __webpack_require__(13)))
475
476
/***/ }),
477
/* 2 */
478
/***/ (function(module, exports, __webpack_require__) {
0 ignored issues
show
Unused Code introduced by
The parameter __webpack_require__ is not used and could be removed.

This check looks for parameters in functions that are not used in the function body and are not followed by other parameters which are used inside the function.

Loading history...
479
480
"use strict";
481
482
483
module.exports = function bind(fn, thisArg) {
484
  return function wrap() {
485
    var args = new Array(arguments.length);
486
    for (var i = 0; i < args.length; i++) {
487
      args[i] = arguments[i];
488
    }
489
    return fn.apply(thisArg, args);
490
  };
491
};
492
493
494
/***/ }),
495
/* 3 */
496
/***/ (function(module, exports, __webpack_require__) {
497
498
"use strict";
499
500
501
var utils = __webpack_require__(0);
502
var settle = __webpack_require__(15);
503
var buildURL = __webpack_require__(17);
504
var parseHeaders = __webpack_require__(18);
505
var isURLSameOrigin = __webpack_require__(19);
506
var createError = __webpack_require__(4);
507
var btoa = (typeof window !== 'undefined' && window.btoa && window.btoa.bind(window)) || __webpack_require__(20);
508
509
module.exports = function xhrAdapter(config) {
510
  return new Promise(function dispatchXhrRequest(resolve, reject) {
511
    var requestData = config.data;
512
    var requestHeaders = config.headers;
513
514
    if (utils.isFormData(requestData)) {
515
      delete requestHeaders['Content-Type']; // Let the browser set it
516
    }
517
518
    var request = new XMLHttpRequest();
519
    var loadEvent = 'onreadystatechange';
520
    var xDomain = false;
521
522
    // For IE 8/9 CORS support
523
    // Only supports POST and GET calls and doesn't returns the response headers.
524
    // DON'T do this for testing b/c XMLHttpRequest is mocked, not XDomainRequest.
525
    if ("development" !== 'test' &&
526
        typeof window !== 'undefined' &&
527
        window.XDomainRequest && !('withCredentials' in request) &&
528
        !isURLSameOrigin(config.url)) {
529
      request = new window.XDomainRequest();
530
      loadEvent = 'onload';
531
      xDomain = true;
532
      request.onprogress = function handleProgress() {};
533
      request.ontimeout = function handleTimeout() {};
534
    }
535
536
    // HTTP basic authentication
537
    if (config.auth) {
538
      var username = config.auth.username || '';
539
      var password = config.auth.password || '';
540
      requestHeaders.Authorization = 'Basic ' + btoa(username + ':' + password);
541
    }
542
543
    request.open(config.method.toUpperCase(), buildURL(config.url, config.params, config.paramsSerializer), true);
544
545
    // Set the request timeout in MS
546
    request.timeout = config.timeout;
547
548
    // Listen for ready state
549
    request[loadEvent] = function handleLoad() {
550
      if (!request || (request.readyState !== 4 && !xDomain)) {
551
        return;
552
      }
553
554
      // The request errored out and we didn't get a response, this will be
555
      // handled by onerror instead
556
      // With one exception: request that using file: protocol, most browsers
557
      // will return status as 0 even though it's a successful request
558
      if (request.status === 0 && !(request.responseURL && request.responseURL.indexOf('file:') === 0)) {
559
        return;
560
      }
561
562
      // Prepare the response
563
      var responseHeaders = 'getAllResponseHeaders' in request ? parseHeaders(request.getAllResponseHeaders()) : null;
564
      var responseData = !config.responseType || config.responseType === 'text' ? request.responseText : request.response;
565
      var response = {
566
        data: responseData,
567
        // IE sends 1223 instead of 204 (https://github.com/axios/axios/issues/201)
568
        status: request.status === 1223 ? 204 : request.status,
569
        statusText: request.status === 1223 ? 'No Content' : request.statusText,
570
        headers: responseHeaders,
571
        config: config,
572
        request: request
573
      };
574
575
      settle(resolve, reject, response);
576
577
      // Clean up request
578
      request = null;
579
    };
580
581
    // Handle low level network errors
582
    request.onerror = function handleError() {
583
      // Real errors are hidden from us by the browser
584
      // onerror should only fire if it's a network error
585
      reject(createError('Network Error', config, null, request));
586
587
      // Clean up request
588
      request = null;
589
    };
590
591
    // Handle timeout
592
    request.ontimeout = function handleTimeout() {
593
      reject(createError('timeout of ' + config.timeout + 'ms exceeded', config, 'ECONNABORTED',
594
        request));
595
596
      // Clean up request
597
      request = null;
598
    };
599
600
    // Add xsrf header
601
    // This is only done if running in a standard browser environment.
602
    // Specifically not if we're in a web worker, or react-native.
603
    if (utils.isStandardBrowserEnv()) {
604
      var cookies = __webpack_require__(21);
605
606
      // Add xsrf header
607
      var xsrfValue = (config.withCredentials || isURLSameOrigin(config.url)) && config.xsrfCookieName ?
608
          cookies.read(config.xsrfCookieName) :
609
          undefined;
610
611
      if (xsrfValue) {
612
        requestHeaders[config.xsrfHeaderName] = xsrfValue;
613
      }
614
    }
615
616
    // Add headers to the request
617
    if ('setRequestHeader' in request) {
618
      utils.forEach(requestHeaders, function setRequestHeader(val, key) {
619
        if (typeof requestData === 'undefined' && key.toLowerCase() === 'content-type') {
620
          // Remove Content-Type if data is undefined
621
          delete requestHeaders[key];
622
        } else {
623
          // Otherwise add header to the request
624
          request.setRequestHeader(key, val);
625
        }
626
      });
627
    }
628
629
    // Add withCredentials to request if needed
630
    if (config.withCredentials) {
631
      request.withCredentials = true;
632
    }
633
634
    // Add responseType to request if needed
635
    if (config.responseType) {
636
      try {
637
        request.responseType = config.responseType;
638
      } catch (e) {
639
        // Expected DOMException thrown by browsers not compatible XMLHttpRequest Level 2.
640
        // But, this can be suppressed for 'json' type as it can be parsed by default 'transformResponse' function.
641
        if (config.responseType !== 'json') {
642
          throw e;
643
        }
644
      }
645
    }
646
647
    // Handle progress if needed
648
    if (typeof config.onDownloadProgress === 'function') {
649
      request.addEventListener('progress', config.onDownloadProgress);
650
    }
651
652
    // Not all browsers support upload events
653
    if (typeof config.onUploadProgress === 'function' && request.upload) {
654
      request.upload.addEventListener('progress', config.onUploadProgress);
655
    }
656
657
    if (config.cancelToken) {
658
      // Handle cancellation
659
      config.cancelToken.promise.then(function onCanceled(cancel) {
660
        if (!request) {
661
          return;
662
        }
663
664
        request.abort();
665
        reject(cancel);
666
        // Clean up request
667
        request = null;
668
      });
669
    }
670
671
    if (requestData === undefined) {
672
      requestData = null;
673
    }
674
675
    // Send the request
676
    request.send(requestData);
677
  });
678
};
679
680
681
/***/ }),
682
/* 4 */
683
/***/ (function(module, exports, __webpack_require__) {
684
685
"use strict";
686
687
688
var enhanceError = __webpack_require__(16);
689
690
/**
691
 * Create an Error with the specified message, config, error code, request and response.
692
 *
693
 * @param {string} message The error message.
694
 * @param {Object} config The config.
695
 * @param {string} [code] The error code (for example, 'ECONNABORTED').
696
 * @param {Object} [request] The request.
697
 * @param {Object} [response] The response.
698
 * @returns {Error} The created error.
699
 */
700
module.exports = function createError(message, config, code, request, response) {
701
  var error = new Error(message);
702
  return enhanceError(error, config, code, request, response);
703
};
704
705
706
/***/ }),
707
/* 5 */
708
/***/ (function(module, exports, __webpack_require__) {
0 ignored issues
show
Unused Code introduced by
The parameter __webpack_require__ is not used and could be removed.

This check looks for parameters in functions that are not used in the function body and are not followed by other parameters which are used inside the function.

Loading history...
709
710
"use strict";
711
712
713
module.exports = function isCancel(value) {
714
  return !!(value && value.__CANCEL__);
715
};
716
717
718
/***/ }),
719
/* 6 */
720
/***/ (function(module, exports, __webpack_require__) {
0 ignored issues
show
Unused Code introduced by
The parameter __webpack_require__ is not used and could be removed.

This check looks for parameters in functions that are not used in the function body and are not followed by other parameters which are used inside the function.

Loading history...
721
722
"use strict";
723
724
725
/**
726
 * A `Cancel` is an object that is thrown when an operation is canceled.
727
 *
728
 * @class
729
 * @param {string=} message The message.
730
 */
731
function Cancel(message) {
732
  this.message = message;
733
}
734
735
Cancel.prototype.toString = function toString() {
736
  return 'Cancel' + (this.message ? ': ' + this.message : '');
737
};
738
739
Cancel.prototype.__CANCEL__ = true;
740
741
module.exports = Cancel;
742
743
744
/***/ }),
745
/* 7 */
746
/***/ (function(module, exports, __webpack_require__) {
747
748
__webpack_require__(8);
749
module.exports = __webpack_require__(29);
750
751
752
/***/ }),
753
/* 8 */
754
/***/ (function(module, exports, __webpack_require__) {
755
756
// window._ = require('lodash');
757
758
/**
759
 * We'll load jQuery and the Bootstrap jQuery plugin which provides support
760
 * for JavaScript based Bootstrap features such as modals and tabs. This
761
 * code may be modified to fit the specific needs of your application.
762
 */
763
764
// try {
765
//     window.$ = window.jQuery = require('jquery');
766
//
767
//     require('bootstrap-sass');
768
// } catch (e) {}
769
770
/**
771
 * We'll load the axios HTTP library which allows us to easily issue requests
772
 * to our Laravel back-end. This library automatically handles sending the
773
 * CSRF token as a header based on the value of the "XSRF" token cookie.
774
 */
775
776
window.axios = __webpack_require__(9);
777
778
window.axios.defaults.headers.common['X-Requested-With'] = 'XMLHttpRequest';
779
780
/**
781
 * Next we will register the CSRF Token as a common header with Axios so that
782
 * all outgoing HTTP requests automatically have it attached. This is just
783
 * a simple convenience so we don't have to attach every token manually.
784
 */
785
786
var token = document.head.querySelector('meta[name="csrf-token"]');
787
788
if (token) {
789
  window.axios.defaults.headers.common['X-CSRF-TOKEN'] = token.content;
790
} else {
791
  console.error('CSRF token not found: https://laravel.com/docs/csrf#csrf-x-csrf-token');
792
}
793
794
/**
795
 * Echo exposes an expressive API for subscribing to channels and listening
796
 * for events that are broadcast by Laravel. Echo and event broadcasting
797
 * allows your team to easily build robust real-time web applications.
798
 */
799
800
// import Echo from 'laravel-echo'
801
802
// window.Pusher = require('pusher-js');
803
804
// window.Echo = new Echo({
805
//     broadcaster: 'pusher',
806
//     key: 'your-pusher-key',
807
//     cluster: 'mt1',
808
//     encrypted: true
809
// });
810
811
/***/ }),
812
/* 9 */
813
/***/ (function(module, exports, __webpack_require__) {
814
815
module.exports = __webpack_require__(10);
816
817
/***/ }),
818
/* 10 */
819
/***/ (function(module, exports, __webpack_require__) {
820
821
"use strict";
822
823
824
var utils = __webpack_require__(0);
825
var bind = __webpack_require__(2);
826
var Axios = __webpack_require__(12);
827
var defaults = __webpack_require__(1);
828
829
/**
830
 * Create an instance of Axios
831
 *
832
 * @param {Object} defaultConfig The default config for the instance
833
 * @return {Axios} A new instance of Axios
834
 */
835
function createInstance(defaultConfig) {
836
  var context = new Axios(defaultConfig);
837
  var instance = bind(Axios.prototype.request, context);
838
839
  // Copy axios.prototype to instance
840
  utils.extend(instance, Axios.prototype, context);
841
842
  // Copy context to instance
843
  utils.extend(instance, context);
844
845
  return instance;
846
}
847
848
// Create the default instance to be exported
849
var axios = createInstance(defaults);
850
851
// Expose Axios class to allow class inheritance
852
axios.Axios = Axios;
853
854
// Factory for creating new instances
855
axios.create = function create(instanceConfig) {
856
  return createInstance(utils.merge(defaults, instanceConfig));
857
};
858
859
// Expose Cancel & CancelToken
860
axios.Cancel = __webpack_require__(6);
861
axios.CancelToken = __webpack_require__(27);
862
axios.isCancel = __webpack_require__(5);
863
864
// Expose all/spread
865
axios.all = function all(promises) {
866
  return Promise.all(promises);
867
};
868
axios.spread = __webpack_require__(28);
869
870
module.exports = axios;
871
872
// Allow use of default import syntax in TypeScript
873
module.exports.default = axios;
874
875
876
/***/ }),
877
/* 11 */
878
/***/ (function(module, exports) {
879
880
/*!
881
 * Determine if an object is a Buffer
882
 *
883
 * @author   Feross Aboukhadijeh <https://feross.org>
884
 * @license  MIT
885
 */
886
887
// The _isBuffer check is for Safari 5-7 support, because it's missing
888
// Object.prototype.constructor. Remove this eventually
889
module.exports = function (obj) {
890
  return obj != null && (isBuffer(obj) || isSlowBuffer(obj) || !!obj._isBuffer)
0 ignored issues
show
Best Practice introduced by
Comparing obj to null using the != operator is not safe. Consider using !== instead.
Loading history...
891
}
892
893
function isBuffer (obj) {
894
  return !!obj.constructor && typeof obj.constructor.isBuffer === 'function' && obj.constructor.isBuffer(obj)
895
}
896
897
// For Node v0.10 support. Remove this eventually.
898
function isSlowBuffer (obj) {
899
  return typeof obj.readFloatLE === 'function' && typeof obj.slice === 'function' && isBuffer(obj.slice(0, 0))
900
}
901
902
903
/***/ }),
904
/* 12 */
905
/***/ (function(module, exports, __webpack_require__) {
906
907
"use strict";
908
909
910
var defaults = __webpack_require__(1);
911
var utils = __webpack_require__(0);
912
var InterceptorManager = __webpack_require__(22);
913
var dispatchRequest = __webpack_require__(23);
914
915
/**
916
 * Create a new instance of Axios
917
 *
918
 * @param {Object} instanceConfig The default config for the instance
919
 */
920
function Axios(instanceConfig) {
921
  this.defaults = instanceConfig;
922
  this.interceptors = {
923
    request: new InterceptorManager(),
924
    response: new InterceptorManager()
925
  };
926
}
927
928
/**
929
 * Dispatch a request
930
 *
931
 * @param {Object} config The config specific for this request (merged with this.defaults)
932
 */
933
Axios.prototype.request = function request(config) {
934
  /*eslint no-param-reassign:0*/
935
  // Allow for axios('example/url'[, config]) a la fetch API
936
  if (typeof config === 'string') {
937
    config = utils.merge({
938
      url: arguments[0]
939
    }, arguments[1]);
940
  }
941
942
  config = utils.merge(defaults, this.defaults, { method: 'get' }, config);
943
  config.method = config.method.toLowerCase();
944
945
  // Hook up interceptors middleware
946
  var chain = [dispatchRequest, undefined];
947
  var promise = Promise.resolve(config);
948
949
  this.interceptors.request.forEach(function unshiftRequestInterceptors(interceptor) {
950
    chain.unshift(interceptor.fulfilled, interceptor.rejected);
951
  });
952
953
  this.interceptors.response.forEach(function pushResponseInterceptors(interceptor) {
954
    chain.push(interceptor.fulfilled, interceptor.rejected);
955
  });
956
957
  while (chain.length) {
958
    promise = promise.then(chain.shift(), chain.shift());
959
  }
960
961
  return promise;
962
};
963
964
// Provide aliases for supported request methods
965
utils.forEach(['delete', 'get', 'head', 'options'], function forEachMethodNoData(method) {
966
  /*eslint func-names:0*/
967
  Axios.prototype[method] = function(url, config) {
968
    return this.request(utils.merge(config || {}, {
969
      method: method,
970
      url: url
971
    }));
972
  };
973
});
974
975
utils.forEach(['post', 'put', 'patch'], function forEachMethodWithData(method) {
976
  /*eslint func-names:0*/
977
  Axios.prototype[method] = function(url, data, config) {
978
    return this.request(utils.merge(config || {}, {
979
      method: method,
980
      url: url,
981
      data: data
982
    }));
983
  };
984
});
985
986
module.exports = Axios;
987
988
989
/***/ }),
990
/* 13 */
991
/***/ (function(module, exports) {
992
993
// shim for using process in browser
994
var process = module.exports = {};
995
996
// cached from whatever global is present so that test runners that stub it
997
// don't break things.  But we need to wrap it in a try catch in case it is
998
// wrapped in strict mode code which doesn't define any globals.  It's inside a
999
// function because try/catches deoptimize in certain engines.
1000
1001
var cachedSetTimeout;
1002
var cachedClearTimeout;
1003
1004
function defaultSetTimout() {
1005
    throw new Error('setTimeout has not been defined');
1006
}
1007
function defaultClearTimeout () {
1008
    throw new Error('clearTimeout has not been defined');
1009
}
1010
(function () {
1011
    try {
1012
        if (typeof setTimeout === 'function') {
0 ignored issues
show
Bug introduced by
The variable setTimeout seems to be never declared. If this is a global, consider adding a /** global: setTimeout */ comment.

This checks looks for references to variables that have not been declared. This is most likey a typographical error or a variable has been renamed.

To learn more about declaring variables in Javascript, see the MDN.

Loading history...
1013
            cachedSetTimeout = setTimeout;
1014
        } else {
1015
            cachedSetTimeout = defaultSetTimout;
1016
        }
1017
    } catch (e) {
1018
        cachedSetTimeout = defaultSetTimout;
1019
    }
1020
    try {
1021
        if (typeof clearTimeout === 'function') {
0 ignored issues
show
Bug introduced by
The variable clearTimeout seems to be never declared. If this is a global, consider adding a /** global: clearTimeout */ comment.

This checks looks for references to variables that have not been declared. This is most likey a typographical error or a variable has been renamed.

To learn more about declaring variables in Javascript, see the MDN.

Loading history...
1022
            cachedClearTimeout = clearTimeout;
1023
        } else {
1024
            cachedClearTimeout = defaultClearTimeout;
1025
        }
1026
    } catch (e) {
1027
        cachedClearTimeout = defaultClearTimeout;
1028
    }
1029
} ())
1030
function runTimeout(fun) {
1031
    if (cachedSetTimeout === setTimeout) {
0 ignored issues
show
Bug introduced by
The variable setTimeout seems to be never declared. If this is a global, consider adding a /** global: setTimeout */ comment.

This checks looks for references to variables that have not been declared. This is most likey a typographical error or a variable has been renamed.

To learn more about declaring variables in Javascript, see the MDN.

Loading history...
1032
        //normal enviroments in sane situations
1033
        return setTimeout(fun, 0);
1034
    }
1035
    // if setTimeout wasn't available but was latter defined
1036
    if ((cachedSetTimeout === defaultSetTimout || !cachedSetTimeout) && setTimeout) {
0 ignored issues
show
Best Practice introduced by
If you intend to check if the variable setTimeout is declared in the current environment, consider using typeof setTimeout === "undefined" instead. This is safe if the variable is not actually declared.
Loading history...
1037
        cachedSetTimeout = setTimeout;
1038
        return setTimeout(fun, 0);
1039
    }
1040
    try {
1041
        // when when somebody has screwed with setTimeout but no I.E. maddness
1042
        return cachedSetTimeout(fun, 0);
1043
    } catch(e){
1044
        try {
1045
            // When we are in I.E. but the script has been evaled so I.E. doesn't trust the global object when called normally
1046
            return cachedSetTimeout.call(null, fun, 0);
0 ignored issues
show
Bug introduced by
The variable cachedSetTimeout does not seem to be initialized in case cachedSetTimeout === def...etTimeout && setTimeout on line 1036 is false. Are you sure this can never be the case?
Loading history...
1047
        } catch(e){
1048
            // same as above but when it's a version of I.E. that must have the global object for 'this', hopfully our context correct otherwise it will throw a global error
1049
            return cachedSetTimeout.call(this, fun, 0);
1050
        }
1051
    }
1052
1053
1054
}
1055
function runClearTimeout(marker) {
1056
    if (cachedClearTimeout === clearTimeout) {
0 ignored issues
show
Bug introduced by
The variable clearTimeout seems to be never declared. If this is a global, consider adding a /** global: clearTimeout */ comment.

This checks looks for references to variables that have not been declared. This is most likey a typographical error or a variable has been renamed.

To learn more about declaring variables in Javascript, see the MDN.

Loading history...
1057
        //normal enviroments in sane situations
1058
        return clearTimeout(marker);
1059
    }
1060
    // if clearTimeout wasn't available but was latter defined
1061
    if ((cachedClearTimeout === defaultClearTimeout || !cachedClearTimeout) && clearTimeout) {
0 ignored issues
show
Best Practice introduced by
If you intend to check if the variable clearTimeout is declared in the current environment, consider using typeof clearTimeout === "undefined" instead. This is safe if the variable is not actually declared.
Loading history...
1062
        cachedClearTimeout = clearTimeout;
1063
        return clearTimeout(marker);
1064
    }
1065
    try {
1066
        // when when somebody has screwed with setTimeout but no I.E. maddness
1067
        return cachedClearTimeout(marker);
1068
    } catch (e){
1069
        try {
1070
            // When we are in I.E. but the script has been evaled so I.E. doesn't  trust the global object when called normally
1071
            return cachedClearTimeout.call(null, marker);
0 ignored issues
show
Bug introduced by
The variable cachedClearTimeout does not seem to be initialized in case cachedClearTimeout === d...Timeout && clearTimeout on line 1061 is false. Are you sure this can never be the case?
Loading history...
1072
        } catch (e){
1073
            // same as above but when it's a version of I.E. that must have the global object for 'this', hopfully our context correct otherwise it will throw a global error.
1074
            // Some versions of I.E. have different rules for clearTimeout vs setTimeout
1075
            return cachedClearTimeout.call(this, marker);
1076
        }
1077
    }
1078
1079
1080
1081
}
1082
var queue = [];
1083
var draining = false;
1084
var currentQueue;
1085
var queueIndex = -1;
1086
1087
function cleanUpNextTick() {
1088
    if (!draining || !currentQueue) {
1089
        return;
1090
    }
1091
    draining = false;
1092
    if (currentQueue.length) {
1093
        queue = currentQueue.concat(queue);
1094
    } else {
1095
        queueIndex = -1;
1096
    }
1097
    if (queue.length) {
1098
        drainQueue();
1099
    }
1100
}
1101
1102
function drainQueue() {
1103
    if (draining) {
1104
        return;
1105
    }
1106
    var timeout = runTimeout(cleanUpNextTick);
1107
    draining = true;
1108
1109
    var len = queue.length;
1110
    while(len) {
1111
        currentQueue = queue;
0 ignored issues
show
Bug introduced by
The variable queue is changed as part of the while loop for example by [] on line 1112. Only the value of the last iteration will be visible in this function if it is called after the loop.
Loading history...
1112
        queue = [];
1113
        while (++queueIndex < len) {
0 ignored issues
show
Bug introduced by
The variable queueIndex is changed as part of the while loop for example by ++queueIndex on line 1113. Only the value of the last iteration will be visible in this function if it is called after the loop.
Loading history...
1114
            if (currentQueue) {
1115
                currentQueue[queueIndex].run();
1116
            }
1117
        }
1118
        queueIndex = -1;
1119
        len = queue.length;
1120
    }
1121
    currentQueue = null;
1122
    draining = false;
1123
    runClearTimeout(timeout);
1124
}
1125
1126
process.nextTick = function (fun) {
1127
    var args = new Array(arguments.length - 1);
1128
    if (arguments.length > 1) {
1129
        for (var i = 1; i < arguments.length; i++) {
1130
            args[i - 1] = arguments[i];
1131
        }
1132
    }
1133
    queue.push(new Item(fun, args));
1134
    if (queue.length === 1 && !draining) {
1135
        runTimeout(drainQueue);
1136
    }
1137
};
1138
1139
// v8 likes predictible objects
1140
function Item(fun, array) {
1141
    this.fun = fun;
1142
    this.array = array;
1143
}
1144
Item.prototype.run = function () {
1145
    this.fun.apply(null, this.array);
1146
};
1147
process.title = 'browser';
1148
process.browser = true;
1149
process.env = {};
1150
process.argv = [];
1151
process.version = ''; // empty string to avoid regexp issues
1152
process.versions = {};
1153
1154
function noop() {}
1155
1156
process.on = noop;
1157
process.addListener = noop;
1158
process.once = noop;
1159
process.off = noop;
1160
process.removeListener = noop;
1161
process.removeAllListeners = noop;
1162
process.emit = noop;
1163
process.prependListener = noop;
1164
process.prependOnceListener = noop;
1165
1166
process.listeners = function (name) { return [] }
0 ignored issues
show
Unused Code introduced by
The parameter name is not used and could be removed.

This check looks for parameters in functions that are not used in the function body and are not followed by other parameters which are used inside the function.

Loading history...
1167
1168
process.binding = function (name) {
0 ignored issues
show
Unused Code introduced by
The parameter name is not used and could be removed.

This check looks for parameters in functions that are not used in the function body and are not followed by other parameters which are used inside the function.

Loading history...
1169
    throw new Error('process.binding is not supported');
1170
};
1171
1172
process.cwd = function () { return '/' };
1173
process.chdir = function (dir) {
0 ignored issues
show
Unused Code introduced by
The parameter dir is not used and could be removed.

This check looks for parameters in functions that are not used in the function body and are not followed by other parameters which are used inside the function.

Loading history...
1174
    throw new Error('process.chdir is not supported');
1175
};
1176
process.umask = function() { return 0; };
1177
1178
1179
/***/ }),
1180
/* 14 */
1181
/***/ (function(module, exports, __webpack_require__) {
1182
1183
"use strict";
1184
1185
1186
var utils = __webpack_require__(0);
1187
1188
module.exports = function normalizeHeaderName(headers, normalizedName) {
1189
  utils.forEach(headers, function processHeader(value, name) {
1190
    if (name !== normalizedName && name.toUpperCase() === normalizedName.toUpperCase()) {
1191
      headers[normalizedName] = value;
1192
      delete headers[name];
1193
    }
1194
  });
1195
};
1196
1197
1198
/***/ }),
1199
/* 15 */
1200
/***/ (function(module, exports, __webpack_require__) {
1201
1202
"use strict";
1203
1204
1205
var createError = __webpack_require__(4);
1206
1207
/**
1208
 * Resolve or reject a Promise based on response status.
1209
 *
1210
 * @param {Function} resolve A function that resolves the promise.
1211
 * @param {Function} reject A function that rejects the promise.
1212
 * @param {object} response The response.
1213
 */
1214
module.exports = function settle(resolve, reject, response) {
1215
  var validateStatus = response.config.validateStatus;
1216
  // Note: status is not exposed by XDomainRequest
1217
  if (!response.status || !validateStatus || validateStatus(response.status)) {
1218
    resolve(response);
1219
  } else {
1220
    reject(createError(
1221
      'Request failed with status code ' + response.status,
1222
      response.config,
1223
      null,
1224
      response.request,
1225
      response
1226
    ));
1227
  }
1228
};
1229
1230
1231
/***/ }),
1232
/* 16 */
1233
/***/ (function(module, exports, __webpack_require__) {
0 ignored issues
show
Unused Code introduced by
The parameter __webpack_require__ is not used and could be removed.

This check looks for parameters in functions that are not used in the function body and are not followed by other parameters which are used inside the function.

Loading history...
1234
1235
"use strict";
1236
1237
1238
/**
1239
 * Update an Error with the specified config, error code, and response.
1240
 *
1241
 * @param {Error} error The error to update.
1242
 * @param {Object} config The config.
1243
 * @param {string} [code] The error code (for example, 'ECONNABORTED').
1244
 * @param {Object} [request] The request.
1245
 * @param {Object} [response] The response.
1246
 * @returns {Error} The error.
1247
 */
1248
module.exports = function enhanceError(error, config, code, request, response) {
1249
  error.config = config;
1250
  if (code) {
1251
    error.code = code;
1252
  }
1253
  error.request = request;
1254
  error.response = response;
1255
  return error;
1256
};
1257
1258
1259
/***/ }),
1260
/* 17 */
1261
/***/ (function(module, exports, __webpack_require__) {
1262
1263
"use strict";
1264
1265
1266
var utils = __webpack_require__(0);
1267
1268
function encode(val) {
1269
  return encodeURIComponent(val).
1270
    replace(/%40/gi, '@').
1271
    replace(/%3A/gi, ':').
1272
    replace(/%24/g, '$').
1273
    replace(/%2C/gi, ',').
1274
    replace(/%20/g, '+').
1275
    replace(/%5B/gi, '[').
1276
    replace(/%5D/gi, ']');
1277
}
1278
1279
/**
1280
 * Build a URL by appending params to the end
1281
 *
1282
 * @param {string} url The base of the url (e.g., http://www.google.com)
1283
 * @param {object} [params] The params to be appended
1284
 * @returns {string} The formatted url
1285
 */
1286
module.exports = function buildURL(url, params, paramsSerializer) {
1287
  /*eslint no-param-reassign:0*/
1288
  if (!params) {
1289
    return url;
1290
  }
1291
1292
  var serializedParams;
1293
  if (paramsSerializer) {
1294
    serializedParams = paramsSerializer(params);
1295
  } else if (utils.isURLSearchParams(params)) {
1296
    serializedParams = params.toString();
1297
  } else {
1298
    var parts = [];
1299
1300
    utils.forEach(params, function serialize(val, key) {
1301
      if (val === null || typeof val === 'undefined') {
1302
        return;
1303
      }
1304
1305
      if (utils.isArray(val)) {
1306
        key = key + '[]';
1307
      }
1308
1309
      if (!utils.isArray(val)) {
1310
        val = [val];
1311
      }
1312
1313
      utils.forEach(val, function parseValue(v) {
1314
        if (utils.isDate(v)) {
1315
          v = v.toISOString();
1316
        } else if (utils.isObject(v)) {
1317
          v = JSON.stringify(v);
1318
        }
1319
        parts.push(encode(key) + '=' + encode(v));
1320
      });
1321
    });
1322
1323
    serializedParams = parts.join('&');
1324
  }
1325
1326
  if (serializedParams) {
1327
    url += (url.indexOf('?') === -1 ? '?' : '&') + serializedParams;
1328
  }
1329
1330
  return url;
1331
};
1332
1333
1334
/***/ }),
1335
/* 18 */
1336
/***/ (function(module, exports, __webpack_require__) {
1337
1338
"use strict";
1339
1340
1341
var utils = __webpack_require__(0);
1342
1343
// Headers whose duplicates are ignored by node
1344
// c.f. https://nodejs.org/api/http.html#http_message_headers
1345
var ignoreDuplicateOf = [
1346
  'age', 'authorization', 'content-length', 'content-type', 'etag',
1347
  'expires', 'from', 'host', 'if-modified-since', 'if-unmodified-since',
1348
  'last-modified', 'location', 'max-forwards', 'proxy-authorization',
1349
  'referer', 'retry-after', 'user-agent'
1350
];
1351
1352
/**
1353
 * Parse headers into an object
1354
 *
1355
 * ```
1356
 * Date: Wed, 27 Aug 2014 08:58:49 GMT
1357
 * Content-Type: application/json
1358
 * Connection: keep-alive
1359
 * Transfer-Encoding: chunked
1360
 * ```
1361
 *
1362
 * @param {String} headers Headers needing to be parsed
1363
 * @returns {Object} Headers parsed into an object
1364
 */
1365
module.exports = function parseHeaders(headers) {
1366
  var parsed = {};
1367
  var key;
1368
  var val;
1369
  var i;
1370
1371
  if (!headers) { return parsed; }
1372
1373
  utils.forEach(headers.split('\n'), function parser(line) {
1374
    i = line.indexOf(':');
1375
    key = utils.trim(line.substr(0, i)).toLowerCase();
1376
    val = utils.trim(line.substr(i + 1));
1377
1378
    if (key) {
1379
      if (parsed[key] && ignoreDuplicateOf.indexOf(key) >= 0) {
1380
        return;
1381
      }
1382
      if (key === 'set-cookie') {
1383
        parsed[key] = (parsed[key] ? parsed[key] : []).concat([val]);
1384
      } else {
1385
        parsed[key] = parsed[key] ? parsed[key] + ', ' + val : val;
1386
      }
1387
    }
1388
  });
1389
1390
  return parsed;
1391
};
1392
1393
1394
/***/ }),
1395
/* 19 */
1396
/***/ (function(module, exports, __webpack_require__) {
1397
1398
"use strict";
1399
1400
1401
var utils = __webpack_require__(0);
1402
1403
module.exports = (
1404
  utils.isStandardBrowserEnv() ?
1405
1406
  // Standard browser envs have full support of the APIs needed to test
1407
  // whether the request URL is of the same origin as current location.
1408
  (function standardBrowserEnv() {
1409
    var msie = /(msie|trident)/i.test(navigator.userAgent);
0 ignored issues
show
Bug introduced by
The variable navigator seems to be never declared. If this is a global, consider adding a /** global: navigator */ comment.

This checks looks for references to variables that have not been declared. This is most likey a typographical error or a variable has been renamed.

To learn more about declaring variables in Javascript, see the MDN.

Loading history...
1410
    var urlParsingNode = document.createElement('a');
1411
    var originURL;
1412
1413
    /**
1414
    * Parse a URL to discover it's components
1415
    *
1416
    * @param {String} url The URL to be parsed
1417
    * @returns {Object}
1418
    */
1419
    function resolveURL(url) {
1420
      var href = url;
1421
1422
      if (msie) {
1423
        // IE needs attribute set twice to normalize properties
1424
        urlParsingNode.setAttribute('href', href);
1425
        href = urlParsingNode.href;
1426
      }
1427
1428
      urlParsingNode.setAttribute('href', href);
1429
1430
      // urlParsingNode provides the UrlUtils interface - http://url.spec.whatwg.org/#urlutils
1431
      return {
1432
        href: urlParsingNode.href,
1433
        protocol: urlParsingNode.protocol ? urlParsingNode.protocol.replace(/:$/, '') : '',
1434
        host: urlParsingNode.host,
1435
        search: urlParsingNode.search ? urlParsingNode.search.replace(/^\?/, '') : '',
1436
        hash: urlParsingNode.hash ? urlParsingNode.hash.replace(/^#/, '') : '',
1437
        hostname: urlParsingNode.hostname,
1438
        port: urlParsingNode.port,
1439
        pathname: (urlParsingNode.pathname.charAt(0) === '/') ?
1440
                  urlParsingNode.pathname :
1441
                  '/' + urlParsingNode.pathname
1442
      };
1443
    }
1444
1445
    originURL = resolveURL(window.location.href);
1446
1447
    /**
1448
    * Determine if a URL shares the same origin as the current location
1449
    *
1450
    * @param {String} requestURL The URL to test
1451
    * @returns {boolean} True if URL shares the same origin, otherwise false
1452
    */
1453
    return function isURLSameOrigin(requestURL) {
1454
      var parsed = (utils.isString(requestURL)) ? resolveURL(requestURL) : requestURL;
1455
      return (parsed.protocol === originURL.protocol &&
1456
            parsed.host === originURL.host);
1457
    };
1458
  })() :
1459
1460
  // Non standard browser envs (web workers, react-native) lack needed support.
1461
  (function nonStandardBrowserEnv() {
1462
    return function isURLSameOrigin() {
1463
      return true;
1464
    };
1465
  })()
1466
);
1467
1468
1469
/***/ }),
1470
/* 20 */
1471
/***/ (function(module, exports, __webpack_require__) {
0 ignored issues
show
Unused Code introduced by
The parameter __webpack_require__ is not used and could be removed.

This check looks for parameters in functions that are not used in the function body and are not followed by other parameters which are used inside the function.

Loading history...
1472
1473
"use strict";
1474
1475
1476
// btoa polyfill for IE<10 courtesy https://github.com/davidchambers/Base64.js
1477
1478
var chars = 'ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/=';
1479
1480
function E() {
1481
  this.message = 'String contains an invalid character';
1482
}
1483
E.prototype = new Error;
1484
E.prototype.code = 5;
1485
E.prototype.name = 'InvalidCharacterError';
1486
1487
function btoa(input) {
1488
  var str = String(input);
1489
  var output = '';
1490
  for (
1491
    // initialize result and counter
1492
    var block, charCode, idx = 0, map = chars;
1493
    // if the next str index does not exist:
1494
    //   change the mapping table to "="
1495
    //   check if d has no fractional digits
1496
    str.charAt(idx | 0) || (map = '=', idx % 1);
0 ignored issues
show
Comprehensibility introduced by
Usage of the sequence operator is discouraged, since it may lead to obfuscated code.

The sequence or comma operator allows the inclusion of multiple expressions where only is permitted. The result of the sequence is the value of the last expression.

This operator is most often used in for statements.

Used in another places it can make code hard to read, especially when people do not realize it even exists as a seperate operator.

This check looks for usage of the sequence operator in locations where it is not necessary and could be replaced by a series of expressions or statements.

var a,b,c;

a = 1, b = 1,  c= 3;

could just as well be written as:

var a,b,c;

a = 1;
b = 1;
c = 3;

To learn more about the sequence operator, please refer to the MDN.

Loading history...
1497
    // "8 - idx % 1 * 8" generates the sequence 2, 4, 6, 8
1498
    output += map.charAt(63 & block >> 8 - idx % 1 * 8)
1499
  ) {
1500
    charCode = str.charCodeAt(idx += 3 / 4);
1501
    if (charCode > 0xFF) {
1502
      throw new E();
1503
    }
1504
    block = block << 8 | charCode;
0 ignored issues
show
Bug introduced by
The variable block seems to not be initialized for all possible execution paths.
Loading history...
1505
  }
1506
  return output;
1507
}
1508
1509
module.exports = btoa;
1510
1511
1512
/***/ }),
1513
/* 21 */
1514
/***/ (function(module, exports, __webpack_require__) {
1515
1516
"use strict";
1517
1518
1519
var utils = __webpack_require__(0);
1520
1521
module.exports = (
1522
  utils.isStandardBrowserEnv() ?
1523
1524
  // Standard browser envs support document.cookie
1525
  (function standardBrowserEnv() {
1526
    return {
1527
      write: function write(name, value, expires, path, domain, secure) {
1528
        var cookie = [];
1529
        cookie.push(name + '=' + encodeURIComponent(value));
1530
1531
        if (utils.isNumber(expires)) {
1532
          cookie.push('expires=' + new Date(expires).toGMTString());
1533
        }
1534
1535
        if (utils.isString(path)) {
1536
          cookie.push('path=' + path);
1537
        }
1538
1539
        if (utils.isString(domain)) {
1540
          cookie.push('domain=' + domain);
1541
        }
1542
1543
        if (secure === true) {
1544
          cookie.push('secure');
1545
        }
1546
1547
        document.cookie = cookie.join('; ');
1548
      },
1549
1550
      read: function read(name) {
1551
        var match = document.cookie.match(new RegExp('(^|;\\s*)(' + name + ')=([^;]*)'));
1552
        return (match ? decodeURIComponent(match[3]) : null);
1553
      },
1554
1555
      remove: function remove(name) {
1556
        this.write(name, '', Date.now() - 86400000);
1557
      }
1558
    };
1559
  })() :
1560
1561
  // Non standard browser env (web workers, react-native) lack needed support.
1562
  (function nonStandardBrowserEnv() {
1563
    return {
1564
      write: function write() {},
1565
      read: function read() { return null; },
1566
      remove: function remove() {}
1567
    };
1568
  })()
1569
);
1570
1571
1572
/***/ }),
1573
/* 22 */
1574
/***/ (function(module, exports, __webpack_require__) {
1575
1576
"use strict";
1577
1578
1579
var utils = __webpack_require__(0);
1580
1581
function InterceptorManager() {
1582
  this.handlers = [];
1583
}
1584
1585
/**
1586
 * Add a new interceptor to the stack
1587
 *
1588
 * @param {Function} fulfilled The function to handle `then` for a `Promise`
1589
 * @param {Function} rejected The function to handle `reject` for a `Promise`
1590
 *
1591
 * @return {Number} An ID used to remove interceptor later
1592
 */
1593
InterceptorManager.prototype.use = function use(fulfilled, rejected) {
1594
  this.handlers.push({
1595
    fulfilled: fulfilled,
1596
    rejected: rejected
1597
  });
1598
  return this.handlers.length - 1;
1599
};
1600
1601
/**
1602
 * Remove an interceptor from the stack
1603
 *
1604
 * @param {Number} id The ID that was returned by `use`
1605
 */
1606
InterceptorManager.prototype.eject = function eject(id) {
1607
  if (this.handlers[id]) {
1608
    this.handlers[id] = null;
1609
  }
1610
};
1611
1612
/**
1613
 * Iterate over all the registered interceptors
1614
 *
1615
 * This method is particularly useful for skipping over any
1616
 * interceptors that may have become `null` calling `eject`.
1617
 *
1618
 * @param {Function} fn The function to call for each interceptor
1619
 */
1620
InterceptorManager.prototype.forEach = function forEach(fn) {
1621
  utils.forEach(this.handlers, function forEachHandler(h) {
1622
    if (h !== null) {
1623
      fn(h);
1624
    }
1625
  });
1626
};
1627
1628
module.exports = InterceptorManager;
1629
1630
1631
/***/ }),
1632
/* 23 */
1633
/***/ (function(module, exports, __webpack_require__) {
1634
1635
"use strict";
1636
1637
1638
var utils = __webpack_require__(0);
1639
var transformData = __webpack_require__(24);
1640
var isCancel = __webpack_require__(5);
1641
var defaults = __webpack_require__(1);
1642
var isAbsoluteURL = __webpack_require__(25);
1643
var combineURLs = __webpack_require__(26);
1644
1645
/**
1646
 * Throws a `Cancel` if cancellation has been requested.
1647
 */
1648
function throwIfCancellationRequested(config) {
1649
  if (config.cancelToken) {
1650
    config.cancelToken.throwIfRequested();
1651
  }
1652
}
1653
1654
/**
1655
 * Dispatch a request to the server using the configured adapter.
1656
 *
1657
 * @param {object} config The config that is to be used for the request
1658
 * @returns {Promise} The Promise to be fulfilled
1659
 */
1660
module.exports = function dispatchRequest(config) {
1661
  throwIfCancellationRequested(config);
1662
1663
  // Support baseURL config
1664
  if (config.baseURL && !isAbsoluteURL(config.url)) {
1665
    config.url = combineURLs(config.baseURL, config.url);
1666
  }
1667
1668
  // Ensure headers exist
1669
  config.headers = config.headers || {};
1670
1671
  // Transform request data
1672
  config.data = transformData(
1673
    config.data,
1674
    config.headers,
1675
    config.transformRequest
1676
  );
1677
1678
  // Flatten headers
1679
  config.headers = utils.merge(
1680
    config.headers.common || {},
1681
    config.headers[config.method] || {},
1682
    config.headers || {}
1683
  );
1684
1685
  utils.forEach(
1686
    ['delete', 'get', 'head', 'post', 'put', 'patch', 'common'],
1687
    function cleanHeaderConfig(method) {
1688
      delete config.headers[method];
1689
    }
1690
  );
1691
1692
  var adapter = config.adapter || defaults.adapter;
1693
1694
  return adapter(config).then(function onAdapterResolution(response) {
1695
    throwIfCancellationRequested(config);
1696
1697
    // Transform response data
1698
    response.data = transformData(
1699
      response.data,
1700
      response.headers,
1701
      config.transformResponse
1702
    );
1703
1704
    return response;
1705
  }, function onAdapterRejection(reason) {
1706
    if (!isCancel(reason)) {
1707
      throwIfCancellationRequested(config);
1708
1709
      // Transform response data
1710
      if (reason && reason.response) {
1711
        reason.response.data = transformData(
1712
          reason.response.data,
1713
          reason.response.headers,
1714
          config.transformResponse
1715
        );
1716
      }
1717
    }
1718
1719
    return Promise.reject(reason);
1720
  });
1721
};
1722
1723
1724
/***/ }),
1725
/* 24 */
1726
/***/ (function(module, exports, __webpack_require__) {
1727
1728
"use strict";
1729
1730
1731
var utils = __webpack_require__(0);
1732
1733
/**
1734
 * Transform the data for a request or a response
1735
 *
1736
 * @param {Object|String} data The data to be transformed
1737
 * @param {Array} headers The headers for the request or response
1738
 * @param {Array|Function} fns A single function or Array of functions
1739
 * @returns {*} The resulting transformed data
1740
 */
1741
module.exports = function transformData(data, headers, fns) {
1742
  /*eslint no-param-reassign:0*/
1743
  utils.forEach(fns, function transform(fn) {
1744
    data = fn(data, headers);
1745
  });
1746
1747
  return data;
1748
};
1749
1750
1751
/***/ }),
1752
/* 25 */
1753
/***/ (function(module, exports, __webpack_require__) {
0 ignored issues
show
Unused Code introduced by
The parameter __webpack_require__ is not used and could be removed.

This check looks for parameters in functions that are not used in the function body and are not followed by other parameters which are used inside the function.

Loading history...
1754
1755
"use strict";
1756
1757
1758
/**
1759
 * Determines whether the specified URL is absolute
1760
 *
1761
 * @param {string} url The URL to test
1762
 * @returns {boolean} True if the specified URL is absolute, otherwise false
1763
 */
1764
module.exports = function isAbsoluteURL(url) {
1765
  // A URL is considered absolute if it begins with "<scheme>://" or "//" (protocol-relative URL).
1766
  // RFC 3986 defines scheme name as a sequence of characters beginning with a letter and followed
1767
  // by any combination of letters, digits, plus, period, or hyphen.
1768
  return /^([a-z][a-z\d\+\-\.]*:)?\/\//i.test(url);
1769
};
1770
1771
1772
/***/ }),
1773
/* 26 */
1774
/***/ (function(module, exports, __webpack_require__) {
0 ignored issues
show
Unused Code introduced by
The parameter __webpack_require__ is not used and could be removed.

This check looks for parameters in functions that are not used in the function body and are not followed by other parameters which are used inside the function.

Loading history...
1775
1776
"use strict";
1777
1778
1779
/**
1780
 * Creates a new URL by combining the specified URLs
1781
 *
1782
 * @param {string} baseURL The base URL
1783
 * @param {string} relativeURL The relative URL
1784
 * @returns {string} The combined URL
1785
 */
1786
module.exports = function combineURLs(baseURL, relativeURL) {
1787
  return relativeURL
1788
    ? baseURL.replace(/\/+$/, '') + '/' + relativeURL.replace(/^\/+/, '')
1789
    : baseURL;
1790
};
1791
1792
1793
/***/ }),
1794
/* 27 */
1795
/***/ (function(module, exports, __webpack_require__) {
1796
1797
"use strict";
1798
1799
1800
var Cancel = __webpack_require__(6);
1801
1802
/**
1803
 * A `CancelToken` is an object that can be used to request cancellation of an operation.
1804
 *
1805
 * @class
1806
 * @param {Function} executor The executor function.
1807
 */
1808
function CancelToken(executor) {
1809
  if (typeof executor !== 'function') {
1810
    throw new TypeError('executor must be a function.');
1811
  }
1812
1813
  var resolvePromise;
1814
  this.promise = new Promise(function promiseExecutor(resolve) {
1815
    resolvePromise = resolve;
1816
  });
1817
1818
  var token = this;
1819
  executor(function cancel(message) {
1820
    if (token.reason) {
1821
      // Cancellation has already been requested
1822
      return;
1823
    }
1824
1825
    token.reason = new Cancel(message);
1826
    resolvePromise(token.reason);
1827
  });
1828
}
1829
1830
/**
1831
 * Throws a `Cancel` if cancellation has been requested.
1832
 */
1833
CancelToken.prototype.throwIfRequested = function throwIfRequested() {
1834
  if (this.reason) {
1835
    throw this.reason;
1836
  }
1837
};
1838
1839
/**
1840
 * Returns an object that contains a new `CancelToken` and a function that, when called,
1841
 * cancels the `CancelToken`.
1842
 */
1843
CancelToken.source = function source() {
1844
  var cancel;
1845
  var token = new CancelToken(function executor(c) {
1846
    cancel = c;
1847
  });
1848
  return {
1849
    token: token,
1850
    cancel: cancel
1851
  };
1852
};
1853
1854
module.exports = CancelToken;
1855
1856
1857
/***/ }),
1858
/* 28 */
1859
/***/ (function(module, exports, __webpack_require__) {
0 ignored issues
show
Unused Code introduced by
The parameter __webpack_require__ is not used and could be removed.

This check looks for parameters in functions that are not used in the function body and are not followed by other parameters which are used inside the function.

Loading history...
1860
1861
"use strict";
1862
1863
1864
/**
1865
 * Syntactic sugar for invoking a function and expanding an array for arguments.
1866
 *
1867
 * Common use case would be to use `Function.prototype.apply`.
1868
 *
1869
 *  ```js
1870
 *  function f(x, y, z) {}
1871
 *  var args = [1, 2, 3];
1872
 *  f.apply(null, args);
1873
 *  ```
1874
 *
1875
 * With `spread` this example can be re-written.
1876
 *
1877
 *  ```js
1878
 *  spread(function(x, y, z) {})([1, 2, 3]);
1879
 *  ```
1880
 *
1881
 * @param {Function} callback
1882
 * @returns {Function}
1883
 */
1884
module.exports = function spread(callback) {
1885
  return function wrap(arr) {
1886
    return callback.apply(null, arr);
1887
  };
1888
};
1889
1890
1891
/***/ }),
1892
/* 29 */
1893
/***/ (function(module, exports) {
0 ignored issues
show
Unused Code introduced by
The parameter module is not used and could be removed.

This check looks for parameters in functions that are not used in the function body and are not followed by other parameters which are used inside the function.

Loading history...
Unused Code introduced by
The parameter exports is not used and could be removed.

This check looks for parameters in functions that are not used in the function body and are not followed by other parameters which are used inside the function.

Loading history...
1894
1895
// removed by extract-text-webpack-plugin
1896
1897
/***/ })
1898
/******/ ]);